/* 博客详情页样式 */
.blog-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-detail {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
}

/* 标题与元信息 */
.detail-header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.detail-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 封面图 */
.detail-cover {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.detail-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-cover img:hover {
    transform: scale(1.02);
}

/* 文章内容 */
.detail-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.detail-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #f0f0f0;
}

.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 作者信息 */
.author-info {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 40px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-intro h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.author-intro p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 相关推荐 */
.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.related-list {
    display: flex;
    gap: 20px;
}

.related-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: translateY(-5px);
}

.related-item span {
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-item:hover span {
    color: #57b2c9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-detail {
        padding: 20px;
    }

    .detail-cover img {
        height: 250px;
    }

    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .related-list {
        flex-direction: column;
    }

    .related-item img {
        height: 150px;
    }
}
